I've been spending the last few days trying to figure out how to use TarekRaafat's autoComplete.js on one of my input box. my current problem is, when I click one of the options, nothing happens. here's what I tried: https://jsfiddle.net/vjyLagh8/14/
the console.log in 'selection' event are not called
autoCompleteJS.input.addEventListener("selection", function (e) {
console.log('selection detail'); // ==> this doesn't appear in dev tools
// ...
});
I'm doing it exactly like in the codepen example but why is my code not working? what am I doing wrong?
any help is appreciated..